import { Avatar, Space } from "antd";
import { UserOutlined } from "@ant-design/icons";

const TreeControllerItem = ({ data, selectNode }) => {
    return (
        <Space key={data.id} style={{ textAlign: "center", color: selectNode?.id === data.id ? "#1677FF" : "#000", width: 120 }}>
            {/* <Avatar shape="square" src={<UserOutlined />} size={40} style={{ color: "#000", backgroundColor: "#fff" }} /> */}
            <Space direction="vertical" size={0} style={{ textAlign: "center", fontSize: 12 }}>
                <div>{data.controller?.orName}</div>
                {/* <div>{"门店管理人"}</div> */}
            </Space>
        </Space>
    );
};

export default TreeControllerItem;
